package io.jft.doll.model.bindModel

import android.databinding.ObservableField
import com.g.base.ui.recyclerView.item.BaseItem
import io.jft.doll.R
import io.jft.doll.databinding.ViewImageTextTipLineBinding

/**
 * Created by G on 2017/8/23 0023.
 */

class ImageTextTipBind(text: String?, image: Int?, tip: String?, showArrow: Boolean = true, badge: Int = 0) : BaseItem<ViewImageTextTipLineBinding>() {
    val text = ObservableField<String>(text)
    val image = ObservableField<Int>(image)
    val tip = ObservableField<String>(tip)
    val showArrow = ObservableField<Boolean>(if (showArrow) badge <= 0 else false)
    val badge = ObservableField<Int>(badge)
    override val layoutId: Int = R.layout.view_image_text_tip_line
}